home *** CD-ROM | disk | FTP | other *** search
-
-
-
- SSSSTTTTRRRRAAAAIIIINNNN((((1111MMMM)))) SSSSTTTTRRRRAAAAIIIINNNN((((1111MMMM))))
-
-
-
- NNNNAAAAMMMMEEEE
- strain - extract errors from build log files.
-
- SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
- ssssttttrrrraaaaiiiinnnn [ ----hhhh |||| ----ssss ] [ ----wwww ] [ ----cccc ccccoooonnnntttteeeexxxxtttt ] <_l_o_g_f_i_l_e>
-
- DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
- _s_t_r_a_i_n is used to extract error messages from a build log. It displays
- the error and a certain amount of context around it. _s_t_r_a_i_n can work on
- an arbitrary input, but works best with input that has special markers
- known to _s_t_r_a_i_n. For large build logs, _s_t_r_a_i_n is an effective tool in
- determining build success or failure.
-
- _s_t_r_a_i_n works by folding the log file into 512 character lines and feeding
- these lines through a nawk(1) script which looks for known error messages
- patterns. When _s_t_r_a_i_n encounters an error, it simply saves that line
- number and continues scanning. If _s_t_r_a_i_n hits either a marker or
- accumulates _c_o_n_t_e_x_t lines, it dumps the line in errors and the
- surrounding context. Markers are lines beginning with: @@@@<<<<,@@@@>>>>,============,
-
- OOOOPPPPTTTTIIIIOOOONNNNSSSS
- ----cccc accumulate _c_o_n_t_e_x_t lines before dumping any errors. Default is 15.
-
- ----hhhh show highlights only. This option prints out every line that begins
- with :-( (Mk's "subsystem build failure" identifier) or = (the
- "subsystem build begin" identifier printed by Mk and some
- makefiles).
-
- ----ssss provide a summary list of directories with errors before the _s_t_r_a_i_n
- output.
-
- ----wwww show warning messages, in addition to error messages.
-
- WWWWAAAARRRRNNNNIIIINNNNGGGGSSSS
- The ----hhhh and ----ssss options are mutually exclusive.
-
- SSSSEEEEEEEE AAAALLLLSSSSOOOO
- nawk(1), fold(1), makewrapper(1)
-
- BBBBUUUUGGGGSSSS
- _s_t_r_a_i_n'_s algorithm for finding bugs is simply a list of patterns to
- search for. New tools often report errors in a way that _s_t_r_a_i_n doesn't
- understand.
-
-
-
-
-
-
-
-
-
-
-
-
- PPPPaaaaggggeeee 1111
-
-
-
-